package cn.hzu580.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.hzu580.dao.BaseDAO;
import cn.hzu580.entity.Log;
import cn.hzu580.service.LogService;

@Service("log")
public class LogServiceImpl implements LogService {

	@Resource(name="DAO")
	private BaseDAO baseDAO;
	
	@Override
	public void write(Log log) {
		baseDAO.insert(log);
	}


	public BaseDAO getBaseDAO() {
		return baseDAO;
	}

	public void setBaseDAO(BaseDAO baseDAO) {
		this.baseDAO = baseDAO;
	}
	
	
}
